<?php


namespace app\cuisine\model;


use think\Model;

class IndexModel extends Model
{
    protected $name = 'index';
    public function child(){
        return $this->hasMany(IndexModel::class,'parent_id','id');
    }
    //更新时间戳
    protected $autoWriteTimestamp = 'datetime';
}